package com.hyt.it.ogt.ykcj.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.hyt.it.ogt.ykcj.service.grade.IExamineeSubjectGradeInfoService;

/**
 * 科目成绩失效处理任务
 * @Author chentb
 * @Date 2021/6/24 17:16
 */

@Component
public class BatchInvalidGradeTask implements ScheduledOfTask {
    private Logger log = LoggerFactory.getLogger(getClass());

    @Autowired
    private IExamineeSubjectGradeInfoService subjectGradeInfoService;

    @Override
    public void execute() {
        log.info("开始执行科目成绩失效处理任务");
        subjectGradeInfoService.batchInvalidGradeInfo();
    }


}